package com.neusoft.sysdata.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neusoft.sysdata.entity.SysSynData;
import com.neusoft.sysdata.mapper.SysSynDataMapper;
import com.neusoft.sysdata.service.ISysSynDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: SYS_SYN_DATA
 * @Author: jeecg-boot
 * @Date: 2019-12-10
 * @Version: V1.0
 */
@Service
public class SysSynDataServiceImpl extends ServiceImpl<SysSynDataMapper, SysSynData> implements ISysSynDataService {

    @Autowired
    private SysSynDataMapper sysSynDataMapper;

    /**
     * 查询企业部门信息
     */
    @Override
    public List<SysSynData> selectSynDataInfo(String type) {
        return this.sysSynDataMapper.selectSynDataInfo(type);
    }

    /**
     * 查询一条企业部门信息
     */
    @Override
    public SysSynData selectSynDataOneInfo(String code) {
        return this.sysSynDataMapper.selectSynDataOneInfo(code);
    }

    /**
     * 查询一条历史记录信息
     */
    @Override
    public SysSynData selectSynDataOneInfo(String code, String type) {
        return this.sysSynDataMapper.selectSynCodeOneInfo(code, type);
    }

    /**
     * 查询一条历史记录信息
     */
    @Override
    public SysSynData selectSynRowOneInfo(String rowid, String type) {
        return this.sysSynDataMapper.selectSynRowOneInfo(rowid, type);
    }
}
